package com.corner.web.wxPay;

import com.corner.common.core.controller.BaseController;
import com.corner.common.core.domain.AjaxResult;
import com.corner.system.domain.PayToUserPurseRequest;
import com.corner.system.service.WxPayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @program: corner-admin
 * @description: 微信支付
 * @author: chn
 * @create: 2023-09-04 10:47
 **/
@CrossOrigin
@RestController
@RequestMapping("/wxPay")
public class WxPayController extends BaseController {


    @Autowired
    private WxPayService wxPayService;
    /**
     * 付款到用户零钱钱包
     * @param requestDto
     * @throws Exception
     */
    @PostMapping("/payToUserPurse")
    public AjaxResult payToUserPurse(@RequestBody PayToUserPurseRequest requestDto)throws Exception{
        wxPayService.payToUserPurse(requestDto);
        return AjaxResult.success();
    }

}
